package ast;

import java.util.ArrayList;

import compiler.OutputFormatter;

public class VarDecList {
    private ArrayList<VarDec> list;

    public VarDecList(ArrayList<VarDec> list) {
        this.list = list;
    }

	/**
	 * Generates the C source code of the current knot
	 * @param of The OutputFormatter where the code will be generated
	 */    
    public void genC(OutputFormatter of) {
        for (Statement statement : list)
            statement.genC(of);
    }
}
